package com.cblz.bd.server.frontend.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cblz.bd.server.frontend.entity.BaUserGroup;
import io.vavr.Tuple2;

import java.util.List;

/**
 * @author yanjieping
 * @description 针对表【ba_user_group(会员组表)】的数据库操作Service
 * @createDate 2022-11-04 15:09:54
 */
public interface BaUserGroupService extends IService<BaUserGroup> {

    /**
     * 根据用户ID拿到对应的权限信息
     *
     * @param userGroupId 用户ID
     * @return 权限组信息
     */
    Tuple2<BaUserGroup, List<String>> getRulesByUserId(Integer userGroupId);
}
